"""
7-6 签到 找出重复签到的同学
"""


def resolution1():
    # 在Python中eval函数可以解析任何类型的字面量
    array = eval(input())
    set_array = set(array)
    # 构建哈希查重表
    count_map = {}
    for number in set_array:
        count_map[number] = 0
    # 统计
    for id in array:
        count_map[id] += 1
    # 找重复的人
    repeat_array = []
    for id in count_map.keys():
        if count_map[id] >= 2:
            repeat_array.append(id)
    # 曝光这些重复签到的仔：
    repeat_array = sorted(repeat_array)
    for id in repeat_array:
        print(id, end=" ")


def test():
    array = eval(input())
    print(type(array))
    print(array)


if __name__ == '__main__':
    # resolution1()
    test()